package leetcode.每日一题;

import org.junit.Test;

import java.util.*;

/**
 * @author ：zsy
 * @date ：Created 2022/3/6 10:44
 * @description：https://leetcode-cn.com/problems/longest-uncommon-subsequence-i/
 */
public class 最长特殊序列I {
    @Test
    public void test() {
        Solution solution = new Solution();
        System.out.println(solution.findLUSlength("aba", "cdc"));
    }

    class Solution {
        public int findLUSlength(String a, String b) {
            return !a.equals(b) ? Math.max(a.length(), b.length()) : -1;
        }
    }
}
